package com.learn.jackson.annotation.jsonAnyGetter;

import com.fasterxml.jackson.annotation.JsonAnyGetter;
import lombok.AccessLevel;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.experimental.FieldDefaults;

import java.util.Map;

/**
 * @author XuYang
 * @since 2025/6/9 10:50
 */
@Data
@NoArgsConstructor
@FieldDefaults(level = AccessLevel.PRIVATE)
@AllArgsConstructor(staticName = "of")
public class JsonAnyGetterEntity {
    Long id;
    // 只支持Map
    @JsonAnyGetter
    Map<String, Object> inner;

}
